#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/2
# @Author  : LiJun
# @Email   : lijun@tianyancha.com
# @Version : 1.0.0

import yaml


def read_yaml(file_path):
    with open(file_path, "r") as f:
        yaml_dict = yaml.safe_load(f)

    return yaml_dict


if __name__ == '__main__':
    from conf import config as cf
    file_path = f"{cf.BASE_DIR}/appium_0701/conf/caps.yaml"
    print(read_yaml(file_path))
